High-resolution spectroscopy diagnostics for measuring impurity ion temperature and velocity on the COMPASS tokamak