Why South Africa failed to secure international deal to resolve power crisis