Chemical transformation to lithium batteries