Neutron diffraction as a probe of liquid and glass structures under extreme conditions