A mass spectrometric method for studying charge transfer reactions