Dynamic evolution of income distribution and credit-constrained human capital investment in open economies