transfer characteristics of diode circuit