A range-based method to calibrate a magnetic spectrometer measuring the energy spectrum of the backward electron beam of a plasma focus