Mössbauer spectroscopy for heavy elements: a relativistic benchmark study of mercury