Accurate accelerator energy calibration using selected resonances in proton elastic scattering and in (p,γ) and (p,p′γ) reactions