Energy transfers and nutrient cycles