Pseudorapidity distributions of charged hadrons in proton-lead collisions at √sNN=5.02 and 8.16 TeV