Linking heat stress resistance and recovery in reef-building corals