Magnetic properties of ternary rare-earth compounds of the type R2Fe14B