when did james cook first land on the shores of the hawaiian islands?