Optimization of pulse amplification in ytterbium-doped double-clad fiber amplifiers