Electric vehicles: An agent-based approach to sustainability