How the three principle circuits of non-isolated switching power supply work