Energy transfer and nutrient cycles