Electron beam lithography for nanofabrication