XPS Analysis of sol-gel processed doped and undoped TiO2 films for sensors