Atomic exchange and magnetic properties of Co/Ag/Pt(111)