Authoritarian regimes are becoming adept at manipulating elections to consolidate power, and they have a playbook that is disturbingly effective. So, how do they do it?