Three essays on migration and education Tesis