Analysis of Residual Stress-Texture Relationships in Thin Films