Dual technology energy storage system applied to two complementary energy markets