X-ray analysis of texture domains in nonhomogeneous thin films deposited by physical vapour deposition