Structural studies of condensed matter under extreme conditions of high pressure and temperature combining x-ray absorption spectroscopy, powder diffraction and temperature scans