Joule Losses and Torque Ripple Caused by Current Waveforms in Small and Medium Wind Turbines