A scintillating fiber detector for electron and photon identification at high luminosity colliders