Response of the Great Barrier Reef to sea-level and environmental changes over the past 30,000 years