Visualizing crystal structure evolution of electrode materials upon doping and during charge/discharge cycles in lithium-ion batteries