Fast avalanche photodiode detectors for scintillating fibers