Analytical basis for determining slope lines in grid digital elevation models