On the study of the variation of resolving power of a mass spectrometer with pressure and on the problem of elastic and charge exchange type collisions inside a mass spectrometer