How to obtain the Lorentz space contraction formula for a moving rod from knowledge of the positions of its ends at different times