A tunable UV spectrometer for Doppler broadening thermometry of mercury