XAS and DFT investigation of mononuclear cobalt(III) peroxo complexes: electronic control of the geometric structure in CoO2 versus NiO2 systems.