Flexibility and swing effect on the adsorption of energy-related gases on ZIF-8: combined experimental and simulation study.