Quantification of lithium dendrite and solid electrolyte interphase (SEI) in lithium-ion batteries