Convex envelopes of some quadratic functions over the n-dimensional unit simplex