Determination of jet calibration and energy resolution in proton–proton collisions at √s=8TeV using the ATLAS detector