Micromachining using deep ion beam lithography