Gain saturation effects in a cascade of semiconductor optical amplifiers