Modeling and analysis of the role of energy storage for renewable integration