Lithium iron phosphate battery voltage sorting