Local structure determination using total scattering data