The physics and chemistry of the Schottky barrier height