Anharmonic effects in librational motion of N2-type crystals