SAFELY CHARGING LITHIUM ION BATTERIES