Experimental set-up and optimization of a new gamma-ray spectrometer for the measurement of cosmogenic radionuclides in meteorites