In situ multiscale probing of the synthesis of a Ni-rich layered oxide cathode reveals reaction heterogeneity driven by competing kinetic pathways