Chemical machining