A comparative study of the interaction of oxygen with clusters and single-crystal surfaces of nickel