A Software Solution to Mitigate the EM Emissions of Power Inverters