Microgrid Energy Management Using a Two Stage Rolling Horizon Technique for Controlling an Energy Storage System.