Fundamentals of electrochemical machining