Safety requirements for lithium battery charging