Generating polynomials for matrices with Toeplitz or conjugate-Toeplitz inverses