A kinetic Monte Carlo simulation of solid-electrolyte interphase formation and dendrite growth during electroplating