Libya is a major departure point in North Africa for migrants crossing the Mediterranean Sea to Europe, mainly from other parts of Africa.