Data-Driven Control Methods and Real-Time Simulation of Microgrid-Supporting Energy Storage Units