Early planetesimal differentiation and late accretion shaped Earth’s nitrogen budget | Synapse