A Josephson junction defect spectrometer for measuring two-level systems