Centrality dependence of the nuclear modification factor of charged pions, kaons, and protons in Pb-Pb collisions at s NN =2.76 TeV