Resonance-enhanced multiphoton ionization spectroscopy on the B′2Σ+ and B2Π states of NS