All-optical flip-flop based on a single SOA-MZI