Combined production and conversion of energy in an urban integrated system