Substitutional nitrogen doping of tetrahedral amorphous carbon