Ab Initio and Semiempirical Calculations of the Static Potential for Electron Scattering off the Nitrogen Molecule