Absolute distance measurement by Talbot effect