how does the pressure it an ideal gas ar constant volume and the amount of particles change as the temperature increases