Characterization of polymers by NMR