Production of refurbished lithium batteries