Explain with the help of a circuit diagram, the working of p-n diode as a full wave rectifier. draw a sketch of the input and output waveforms.