Electrical discharge machining combined with mechanical working