Basic Principles of Diode Operation