measuring the distance to the stars