A Pb-TLD spectrometer to measure high energy photons in z-pinch experiments on the primary test stand