Erbium–Ytterbium-Doped Fiber-Based Optical Flip-Flop