Macroeconomic impacts of energy communities and individual prosumers: an assessment of transformation pathways