Theoretical determination of the electron affinity of O2 molecule from the binding energy of O−2