Phase separation in a two-dimensional Co–Cr alloy