Measurement of third-order susceptibilities by a nonlinear image processing method