Convolution kernels versus spectral multipliers for sub-Laplacians on groups of polynomial growth