Effects of quenching on electronic-resonance-enhanced coherent anti-Stokes Raman scattering of nitric oxide