High-resolution positron lifetime spectrometer with BaF2 scintillators