How did interaction with islamic world impact african states?