Modification of Magnetic Stability of Co Single Atoms on Pt(111) by Dimer Formation