SOC-Based BESS Control Logic for Dynamic Frequency Regulation in Microgrids with Renewables