Measurement of differential J/ψ production cross sections and forward-backward ratios in p + Pb collisions with the ATLAS detector