Structural studies of disordered materials using high-energy x-ray diffraction from ambient to extreme conditions