Optimal Integration of Distributed Energy Storage Devices in Smart Grids | Synapse