Mechanical and optical properties of CNx films with high N/C ratio