Machining hard materials