Toward the end of the 14th century and continuing into the 15th century, the causes of "madness" were generally attributed to