On matrix polynomials with the same finite and infinite elementary divisors