Proximity effect correction for electron beam lithography by equalization of background dose