Measurements of the charm jet cross section and nuclear modification factor in pPb collisions at sqrt(s_NN)=5.02 TeV