How do materials and energy how in the ecosystem?