The study of local atomic structures by means of x-ray diffuse scattering