The indirect effects of migration on development