Centrality dependence of the charged-particle multiplicity density at midrapidity in Pb-Pb collisions at root(NN)-N-S=5.02 TeV