Health inequalities and migration dynamics