Social Exclusion and the Gender Gap in Education