Magnetic anisotropy of the VBO3 and CrBO3 transition-metal borates