Texture, residual stress and structural analysis of thin films using a combined X-ray analysis