A history of the Maghrib in the Islamic period