What happens to energy in an ecosystem as it's transmitted between trophic levels?