The boundary of the numerical range of matrix polynomials