The ultraviolet dayglow 1. Far UV emissions of N and N2