Automatic Inverter and Mains Supply Changeover Circuit