Studies of diffusion and flow by pulsed NMR techniques