X-ray diffuse scattering investigation of thin films