What methods, applied to the study of history, led to the perception of the Middle Ages as a time of recession and crisis