UPS synthesized sinewave PWM