Optimal sizing of battery energy storage system for mitigation of RES fluctuation | Synapse