Converting lead-acid rechargeable batteries to lithium batteries