A macroecological perspective of interactions between local conditions and global warming on coral reefs