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