A fast spectroscopic diagnostic for the measurement of plasma impurity ion dynamics