X-ray diffraction and modelling studies of multilayer SnO2 thin film gas sensors