Rare earth compounds with compensated magnetic anisotropy and giant magnetostriction