Local density of states at metal-semiconductor interfaces: an atomic scale study.