Influence of Nitrogen Content on the Structural and Mechanical Properties of TiN Thin Films