What environmental factors affect kinetic energy and diffusion?