Factorizations of M-Matrices in Input-Output Analysis