Electric-field control of magnetism by reversible surface reduction and oxidation reactions