Positive and negative pulsed electrochemical machining