Models for evaluation and optimization of grid-scale energy storage in presence of renewable energy