Resist and Exposure Processes for Sub-10-nm Electron and Ion Beam Lithography