Fundamentals of PN Junction Diode