Evolved gas analysis of amorphous precursors for S-doped TiO2 by TG-FTIR and TG/DTA-MS