Model-based pulse deconvolution method for NaI(Tl) detectors