Automatic Testing of the EMI Due to the Switching Frequency of the PWM Signal