Energy management for a novel hybrid energy storage system for the integration of renewable energy sources into the power grid