Abrupt junction diode theory