Lithium battery voltage matching