Hierarchical soft measurement of load current and state of charge for future smart lithium-ion batteries