According to the kinetic-molecular theory, how does a gas expand?