Magnetic properties of rare-earth transition-metal borides