What are some factors that can affect the rate of a chemical reaction?