An accurate evaluation of electric discharge machining bearings currents in inverter-driven induction motors