The m-connecting imset and factorization for ADMG models