Revealing the Chemical and Structural Complexity of Electrochemical Ion Exchange in Layered Oxide Materials.