Deposition conditions and composition and structure relationships for nitride carbon films obtained by ECR plasma-assisted CVD and reactive rf magnetron sputtering