Diffusional coupling between micro and macroporosity for NMR relaxation in sandstones and carbonates