Heat effects in pressure swing adsorption systems