Vote buying erodes democracy: a mathematical-social model reveals tipping points toward authoritarianism or unrest.