The optical and gas-sensitive properties of opal-like structures based on SnO2