Measurement of the rates of reaction of the ground and metastable excited states of O2+, NO+ and O+ with atmospheric gases at thermal energy