Magnetic resonance imaging in neuromodulation