Direct writing of optical gratings using a scanning electron microscope.