Scintillating fiber dosimeter for radiation therapy accelerator