The metal-semiconductor interface: Si (111) and zincblende (110) junctions