Study of ion—neutral reactions with a time-of-flight double mass spectrometer