Electrical discharge machining combined with electrochemical machining