Ag-induced spin-reorientation transition of Co ultrathin films on Pt(111)