Competition between structural motifs in gold–platinum nanoalloys