A Microgrid Model With EV Demand Uncertainty and Detailed Operation of Storage Systems