Wave packet theory of dynamic absorption spectra in femtosecond pump–probe experiments