Polarization enhanced 14N NQR detection with a nonhomogeneous magnetic field