Israel has begun to prepare for the transfer of detained Eritrean and Sudanese migrants to other countries.