A simple criterion for the existence of nonreal eigenvalues for a class of 2D and 3D Pauli operators