Metal-organic frameworks as adsorbents for impurities of biogas