Electron energy distribution functions under N2 discharge and post-discharge conditions: A self-consistent approach