Measurement of Distances in Astronomy