Optimization of Renewable Energy Consumption in Charging Electric Vehicles Using Intelligent Algorithms