Gain saturation of a CW-pumped erbium-doped fiber amplifier for nanosecond pulses