Characterization and optimization of the gain in Nd-doped single-mode fibers