Magnetic properties of melt‐spun and as‐cast SmCo5−xNix alloys