Improving the Internal Electromagnetic Compatibility in Ac Drives