Hydrogen separation by multi-bed pressure swing adsorption of synthesis gas