Sustainable Integration of Prosumers’ Battery Energy Storage Systems’ Optimal Operation with Reduction in Grid Losses | Synapse