Photoemission in the second positive system of molecular nitrogen in the Earth's dayglow