Diffuse scattering in the layered perovskites