A stack-based set inversion model for smart water, carbon and ecological assessment in urban agglomerations. (15th October 2021)