Electron-beam lithography for formation of submicrometer gratings in semiconductor integrated optoelectronics