Maintaining electric vehicle lithium batteries