General guidelines for the optimal economic aggregation of prosumers in energy communities. (1st November 2022)