Electron ionization of He+ and the destruction of He2+ by charge transfer processes in a space-charge trap