New automated method for extracting river information using optimized spectral threshold water index