Energy flow in terrestrial ecosystems