Evolutionary strategies and nutrient cycling in ecosystems