The structure of real materials using x-ray and neutron scattering