The X/Gamma-ray Imaging Spectrometer (XGIS) on-board THESEUS: Design, main characteristics, and concept of operation