A system for stereotactic radiosurgery with a linear accelerator