Who ended apartheid and how did it end?