A Generalized Linear-Quadratic Formula for High-Dose-Rate Brachytherapy and Radiosurgery