The Byzantine Empire ruled the northern shores of the Sahara from the 5th to the 7th centuries. How long did the Muslims control Egypt?