Stress and the geographic distribution of marine and terrestrial animals