Hans Christian Anderson, E. T. A. Hoffman