Dipolar and chemical shift anisotropy relaxation in a solid polymer by the NMR coherence time in the rotating frame