Nitrogen doping of tetrahedral amorphous carbon