Appropriation and invention of ethnographical knowledge in the Maghreb