Half-reactions and pE/pH equations