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