Molecular simulation of adsorption and diffusion of CH4 and H2O in flexible metal-organic framework ZIF-8