PIP Distance: A Unitary-invariant Metric for Understanding Functionality and Dimensionality of Vector Embeddings