Hybrid density functional theory description of N- and C-doping of NiO.