Magnetic resonance-guided adaptive radiotherapy