Sinwave PWM for inverter