Influence of partial rare-earth substitution for Sm in the giant intrinsic magnetic hardness compound SmCo2Ni3