Visualization of O-O peroxo-like dimers in high-capacity layered oxides for Li-ion batteries