Kernel of Dirac operator, non-homogeneous magnetic field