Renewable Energy and EV Integration in Microgrids