how is the length of a river determined