What determines the average kinetic energy of the molecules of any gas?