Effects of residual gas pressure on the mass resolution and the molecular ion yield of a time-of-flight mass spectrometer