Why do gas giants generally have lower average temperatures than the terrestrial planets?