Moment problems for operator polynomials