state of charge soc estimation for electric batteries