Control of molecular excitation during the plasma generation of a femtosecond laser pulse