Theory of heterodyne pump-probe experiments with femtosecond pulses