Short-range and long-range scattering in electron beam lithography