What happens to the available energy in an ecosystem?