Illustration of solid-electrolyte interphase formation on a graphite anode in lithium-ion batteries and its transition from compact to porous growth