Distributed battery energy storage systems operation framework for grid power levelling in the distribution networks | Synapse