Across Africa, voters are responding to corruption and economic fragility by overturning decades of rule