Simulation of Electron Beam Exposure and Resist Processing for Nano-Patterning