Effect of nitrogen surface doping on the work function and field emission of hydrogenated amorphous carbon films