System on chip battery state estimator: E-bike case study