An investigation of the electronic properties of MgO doped with group III, IV, and V elements: trends with varying dopant atomic number