Composition and texture of TiN thin films fabricated by ECR enhanced sputtering deposition