Pressure swing adsorption for a system with a Langmuir—Freundlich isotherm