How do changes in temperature affect the particle motion of a substance?