Application-relevant characterization of magnetron-sputtered carbon nitride films