Centrality and rapidity dependence of inclusive pion and prompt photon production in p+Pb collisions at the LHC with EPS09s nPDFs