Applications of microfluidics in nuclear magnetic resonance