Power Inverter With Automatic Transfer Switch