Atomic structure and chemical ordering in CoPt nanoalloys