Determination of jet calibration and energy resolution in proton–proton collisions at $$sqrt{s} = 8~hbox {TeV}$$ using the ATLAS detector