A high-resolution mass spectrometer to measure atmospheric ion composition