Elections, universal voting rights and political competition have spread dramatically over two centuries, giving billions more people a voice in government worldwide.