any chemical reaction in which the oxidation number of a molecule, atom, or ion changes by gaining or losing an electron