In situ simultaneous XAS and electrical characterizations of Pt-doped tin oxide thin film deposited by pyrosol method for gas sensors application