Local structure-redox relationship in Li-excess layered oxides