Interface effect on the magnetic anisotropy of CoPt clusters