Laboratory and radio-astronomical spectroscopy of the hyperfine structure of N2D+