Time- and frequency-resolved determination of ultrafast energy transfer in optical Kerr measurements