How diodes work in a power supply with EveryCircuit Simulation