MR-guided radiotherapy of moving targets