Improved linac dose distributions for radiosurgery with irregularly shaped fields