Exchange of greenhouse gases between terrestrial ecosystems and the atmosphere