NEXAFS studies of the reaction of SO2 with TiO2(100)-(1 × 1) and -(1 × 3)