Coherence loss for vibrational and librational excitations in solid nitrogen