Characterization of a Gamma-Ray Detection System Based on a CsI(Tl) Scintillator Coupled to a Silicon PiN Diode