where does the thames river begin and end