Spectral gain compression of optical amplifier cascades for WDM transmission