An optimization model for the integration of electric vehicles and smart grids Problem definition and experimental validation