Five centuries of climate dynamics from a South Pacific coral core