A Randles Circuit Parameter Estimation of Li-Ion Batteries With Embedded Hardware