The tidal measurements of James Cook during the voyage of the Endeavour