Characteristics of the gain and signal-to-noise ratio of a distributed erbium-doped fiber amplifier