Electron beam lithography simulation for sub-10 nm patterning