Synthesis and mechanical properties of hydrogenated carbon and carbon nitride films prepared by magnetron sputtering