Nonlinear optical methods for autocorrelation of objects