Monitoring and control of machining operations