Single- and double-photoionization cross sections of atomic nitrogen from threshold to 31.