Ups inverter circuit diagram