Exergy and energy analysis of biogas upgrading by pressure swing adsorption. Dynamic analysis of the process