Magnetic properties of Nb3X compounds