K-shell photoionization in molecular nitrogen