A two-stage stochastic model for energy storage planning in a microgrid incorporating bilateral contracts and demand response program. (February 2019)