IV characteristics of a PN junction diode