Polarization of an intense space-charge-neutral ion beam incident upon a magnetic field