Measurement of the inelastic cross section in proton-lead collisions at root s(NN)=5.02 TeV