Nuclear depolarization of alkali beams during ionization on surfaces