Describe the role of plants in the water and carbon cycles.