Optimal planning of grid-connected energy storage and renewable energy sources integration using an improved whale algorithm | Synapse