On the determination of surface flow paths from gridded elevation data