Diode characteristics and types