Temperature dependence of the gain in erbium-doped fibers