Charging after converting lead-acid battery to lithium battery