Ford and GM are backing away from electric vehicles and moving into the battery storage business. And it all comes back to AI.