what is a diode used for in a circuit a bit more about the diode hackaday