The role of O2 in O-redox cathodes for Li-ion batteries