Text this: Optimal design of electric-vehicle batteries using deep-reinforcement learning