Synergistic effects of Mg doping on TiO2 for improved toxic gas sensing performance at room temperature