Single-molecule observation of diffusion and catalysis in nanoporous solids