Labor adaptation of ethnic migrants in the context of social risks