Medical applications of nuclear magnetic resonance imaging