Assessing the Quality of Democracy