distance from Earth to terrestrial planets