what is the purpose of the diode connected to the coil of the relay in the circuit