On-ground characterization of the Hayabusa2 near-infrared spectrometer (NIRS3)