Analysis of the Main Factors Affecting the Safety of Lithium Ion Batteries