Spectrophotometric determination of the optimal wavelength for a polymer-gel dosimeter