Measurement of the energy density as a function of pseudorapidity in proton–proton collisions at √s=13TeV