A model for the impact of the nanostructure size on its gas sensing properties