Effect of PWM inverters on AC motor bearing currents and shaft voltages