Capturing the swelling of solid-electrolyte interphase in lithium metal batteries