Two thugs who tried to kill a man in a brutal attack in his Greenock home have been jailed for a total of almost 20 years.