(color online) Schematic energy-level diagram of (a) n-type semiconductor, (b) the formation of depletion layer, (c) the formation of inversion layer.