Preparation of Mg-doped TiO2 nanoparticles for photocatalytic degradation of some organic pollutants