Numerical Modeling of Electron Beams in a Source with a Plasma Cathode and Their Transport in a Magnetic Field