Li-ion battery modeling and state of charge estimation method including the hysteresis effect