Determination of surface flow paths from gridded elevation data