Magnetic field effects on secondary electron emission during ion implantation in a nitrogen plasma