Chemical changes induced by sputtering in TiO2 and some selected titanates as observed by X-ray absorption spectroscopy