False alarm mitigation in hyperspectral detection of gaseous chemicals using knowledge of chemical library and residuals