why was henry david thoreau sentenced to jail