Local Unitary Equivalence of Quantum States Based on the Tensor Decompositions of Unitary Matrices