Lucky interferometry for displacement measurement