The computation of dosage in interstitial and intracavitary radiation therapy