Preparation and characterization of p-type semiconducting tin oxide thin film gas sensors