Simulation of spatial distribution of electric field after electron beam irradiation of MgO-doped LiNbO3 covered by resist layer