Calculation of the spatial distribution of ionization density in a material due to electron beam irradiation