Electronic, energetic, and structural properties of C- and Si-doped Mg12O12 nano-cages