The numerical range of selfadjoint matrix polynomials