Study of processes that cause degradation of lithium-ion batteries