Ideal and Practical Diode