Use of anisotropic atom-atom potential functions in lattice-dynamical calculations for solid nitrogen