Democracy and public spending in developing countries