Response of Pleistocene coral reefs to environmental change over long temporal scales