Stack-based technologies for energy storage: a comparative assessment