what river forms a border between canada and new york?