Solidification of immiscible alloys