The role of religion in legends about Turkish attacks