Alloys based on nickel or cobalt