Vanishing of the energy-momentum tensor in euclidean Yang-Mills theories