The changes in the labor market and the formation of the social capital of the immigrants