In situ formation of porous TiO2 nanotube array with MgTiO3 nanoparticles for enhanced photocatalytic activity