Measurements and removal of cerenkov light generated in scintillating fiber-optic sensor induced by high-energy electron beams using a spectrometer