Multipartite invariant states. I. Unitary symmetry