when did james cooke die?