Centrality dependence of J/ψ and ψ(2S) production and nuclear modification in p-Pb collisions at √sNN = 8.16 TeV