Pseudorapidity distributions of charged hadrons in proton-lead collisions at root s(NN)=5:02 and 8.16 TeV