A compton-suppressed phoswich detector for gamma spectroscopy