average distance from Earth of terrestrial planets