One-Step Preparation of SnO2 and Pt-Doped SnO2 As Inverse Opal Thin Films for Gas Sensing