which increases the internal energy of the gas