Ford sees a way to profit from the AI boom by playing more into energy storage. The move has worked well for Tesla.