Study of the production of charged pions, kaons, and protons in pPb collisions at √sNN = 5.02 TeV