Output power and SNR swings in cascades of EDFAs for circuit- and packet-switching optical networks