Two electrolyte decomposition pathways at nickel-rich cathode surfaces in lithium-ion batteries