How to convert AC to DC using diodes and capacitor- bridge rectifier