Application and modeling of battery energy storage in power systems | Synapse