How democracies vote : a study of electoral systems