The geological history of the Great Barrier Reef