Selective femtosecond spectroscopy of molecules in the multipulse technique for observing the optical Kerr effect