NMR in solid D2 near the orientational ordering transition