The politics of AI: democracy and authoritarianism in developing countries