Rare Earth - Co or -Ni intermetallic alloys