A general theory for the correlation between vibration and rotation of partially oriented molecules and for its effects on the NMR parameters