Rare-earth-transition-metal-boron permanent magnets with smaller temperature coefficients