SMS dit: Plasma immersion ion charge state and mass spectrometer