A high performance generalized discontinuous PWM algorithm