Tribological and chemical characterization of ion beam-deposited CNx films