Fast dynamic equivalent circuit model of battery energy storage system for power grid applications | Synapse