A highly segmented NaI(Tl) detector with vacuum photodiode readout for measuring electromagnetic showers at the CERN ISR