Wavelength-dependent transition time of gain saturation in an erbium-doped fiber amplifier