Bounds for the degree of the entries of generalized inverses of polynomial matrices