Construction and performance of a dose-verification scintillation-fiber detector for proton therapy