Polynomials related to chromatic polynomials