Understanding the breathing phenomena in nano-ZIF-7 upon gas adsorption