Calibration of proton accelerator beam energy