Accurate circuit model for predicting the performance of lead-acid AGM batteries