Pn junction diode