The action of SU(N) lattice gauge theory in terms of the heat kernel on the group manifold