More than 300 migrants detained in Libyan desert