Gratings for integrated optics fabricated by electron microscope