Talbot effect applications: measurement of distance with a Fourier-transform method