Magnetic resonance imaging: principles, pulse sequences, and functional imaging