Spectral Gain and Noise Evolution of SOA and SOA-based Switch Matrix