Decompositions of the automorphism groups of edge-colored graphs into the direct product of permutation groups