Predicting coral metapopulation decline in a changing thermal environment