Carl Leonhard Reinhold (1757–1823), Schriftsteller