The trace of the heat kernel in Lipschitz domains