Semi-analytical thermodynamic model for multicomponent adsorption in nanoporous materials