The role of energy communities in electricity grid balancing: A flexible tool for smart grid power distribution optimization | Synapse