Rechargeable battery circuit modeling and analysis of the battery characteristic in charging and discharging processes