Design of Gain-clamped doped-fiber amplifiers for optimal dynamic performance