In an ecosystem, what happens to the atoms of certain chemical elements such as carbon, oxygen, and nitrogen?