Grain Size Effects in Structural Stability of SnO2 and In2O3 Films Aimed for Gas Sensor Applications