Quantum confinement effects and band gap engineering of SnO2 nanocrystals in a MgO matrix