Amnesty International is accusing European governments of knowingly exposing thousands of refugees to torture and abuse in their efforts to curb migration.