Hierarchical Frequency and SOC Control of Power Grids with Battery Energy Storage Systems | Synapse