All-optical label recognition for time-domain signal using multistage switching scheme based on SOA-MZIs