energy pyramid losing energy as heat