A Model of Social Interactions and Endogenous Poverty Traps