What are the two main processes that ecosystems depend upon?