Metal contacts to silicon and indium-phosphide-cleaved surfaces and the influence of intermediate adsorbed layers