Defect-free micromachining of hard-to-machine materials