Counterpropagating spatial solitons in reflection gratings with a longitudinally modulated Kerr nonlinearity.