Optimal design of Grid-connected Photovoltaic (PV) – battery energy storage system