Analysis of power transients in a cascade of EDFAs