What America’s embarrassing election system can learn from voting around the globe