Formation of CNx layers in a nitrogen glow discharge with graphite electrodes