A Droop Control Algorithm with Frequency Partitioning Capability and SoC Balancing for Different Energy Storage Systems