Analytical and numerical simulation of electron beam induced current profiles in p-n junctions