relationship between religion and magic