Brahe's method for measuring the distances between the planets