Phase diagrams of decomposing nanoalloys