Optimization of adaptive feedback control for ultrafast semiconductor spectroscopy