An approach to computing topographic wetness index based on maximum downslope gradient