Solid solutions between ferromagnetic and antiferromagnetic compounds with NiAs structure