How SA emerged as a democracy from the crises of the 1990s