Optimal Management of Energy Storage Systems for Peak Shaving in a Smart Grid | Synapse