The radial distribution function probed by x-ray absorption spectroscopy