diode problems and solutions pdf