cost optimal energy storage niches