Calculation of the barrier for oxygen incorporation into metal and metal-oxide surfaces.