A Machine Learning Method for State of Charge Estimation in Lead-Acid Batteries for Heavy-Duty Vehicles