Nitrogen speciation in upper mantle fluids and the origin of Earth's nitrogen-rich atmosphere