General approach to prepare polymers bearing pendant isocyanate groups