Nal(TI) Total Absorption Detector for Electrons and γ-Rays at GeV Energies