Which two countries were split by civil wars between Arab Muslims in the north and non-Muslim groups in the south?