A large cavity gamma ray spectrometer for measurement of cosmogenic radionuclides in astromaterials by whole rock counting