Spatial distribution of excess carriers in electron-beam excited semiconductors