The Role of Embedding Complexity in Domain-invariant Representations