Process-controlled machining of gray cast iron