Improvements to the alignment process in electron-beam lithography