Structural and mechanical properties of CN x thin films prepared by magnetron sputtering