Liquid-structure analysis by energy-scanning X-ray diffraction: mercury