The future of coral reef functions: predicting effective restoration at a global scale