Optimization of erbium-doped fiber MOPA laser