Automatic threshold method and optimal wavelength selection for insect-damaged vegetable soybean detection using hyperspectral images