Lifecycle optimization of grid-connected photovoltaic energy storage systems | Synapse