Global and local threats to coral reef functioning and existence: review and predictions