Credit constraints, inequality and the growth gains from trade