When gas molecules collide with other gas molecules or the walls of a container, does it affect their speed?