All-optical toggle flip-flop based on monolithic semiconductor ring laser