An inversion formula for a matrix polynomial about a (unit) root