Measurement of the inelastic cross section in proton–lead collisions at √sNN=5.02 TeV