Machine learning predicts biodiversity and resilience in the 'coral triangle'