Magnetic tracking system for radiation therapy