Hierarcical strategy for quantification of NOx in a varying background of typical exhaust gases