Feedback-controlled optimization of amplified femtosecond laser pulses