X-ray absorption fine structure spectroscopy at high-energy-density conditions