Role of Battery Management Systems in Enhancing Lithium-Ion Battery Safety and Performance