Ordering and surface segregation in Co1−cPtc nanoparticles: A theoretical study from surface alloys to nanoalloys