Preparation and characterization of gasochromic thin films