Intraoperative magnetic resonance imaging