Monolithic all-optical set-reset flip-flop operating at 10 Gb/s