What type of government took root in many countries in Latin America after their revolutions?