Range sensing by shearing interferometry: influence of speckle