A Ge(Li) spectrometer for studying neutron capture gamma rays