how does matter move through an ecosystem