A compact and modular X and gamma-ray detector with a CsI scintillator and double-readout Silicon Drift Detectors