Text this: Structuring the energy balance of territorial communities with local infrastructure assets for combined energy production