A spectrometer for high-resolution and high-contrast Brillouin spectroscopy in the ultraviolet