Photocatalytic reduction of Cr(VI) using Mg-doped WO3 nanoparticles