What happens to an energy in an ecosystem?