A study on the bonding structure and mechanical properties of magnetron sputtered CNx thin films