Optimal Management of Water, Nutrient and Carbon Cycles of Green Urban Spaces