Whaling logs from centuries ago offer new insight into climate change