Centrality dependence of the pseudorapidity density distribution for charged particles in Pb-Pb collisions at sqrt(sNN)=5.02 TeV