Computer simulation of rotary electrical discharge machining (REDM).