Microgrid using VRFB, solar, wind and diesel