Numerical Computation of Space-Charge Fields of Electron Bunches in a Beam Pipe of Elliptical Shape