Characterization of Yb-doped silica optical fiber as real-time dosimeter