Band diagrams of n-type and p-type Schottky barriers.