Generalised Chromatic Polynomials of Graphs from Heaps of Pieces