Bipolar junction transistors and diodes explained with energy band levels and electron/hole densities.