Compensating termination net for PWM inverter to reduce stress on both AC load and electronic switches