Democracy in Divided Societies