Simulation of Coulomb interaction effects in electron sources