Finite and Infinite Elementary Divisors of Matrix Polynomials: A Global Approach