Peak Voltage Stress in Inverter-Fed Machines and its Mitigation Measures