AI-driven range optimization for EVs