NMR relaxation and diffusion studies of methane and carbon dioxide in nanoporous ZIF-8 and ZSM-58