A general model for the comparative analysis of social inequalities between Europe and Latin America