Photoinjector generation of high-charge magnetized beams for electron-cooling applications