Atomic-scale structural evolution of electrode materials in Li-ion batteries: a review