What factors affect the equilibrium in a reaction system?