Prevention of bearing currents in large inverter driven electrical machines