Measurement of the prompt-production cross-section ratio σ(χc2)/σ(χc1) in pPb collisions at sNN =8.16 TeV