Characterization of a nanosized TiO2 gas sensor