Photochemical machining