UC research unveils how some medieval cultures adapted to rise of Islam