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