Processes or apparatus applicable to both electrical discharge machining and electrochemical machining