Measurement of fluid flow in pipe and porous media by high-resolution magnetic resonance imaging