Nitrogenated amorphous carbon as a semiconductor