Dual-mode control and optimized power allocation for a flywheel-battery hybrid energy storage system | Synapse