Investigating materials with disordered structures using total neutron scattering