The effect of framework flexibility on diffusion of small molecules in the metal-organic framework IRMOF-1