Chemical reaction equilibrium in nanoporous materials: NO dimerization reaction in carbon slit nanopores.