Waste heat driven dual-mode, multi-stage, multi-bed regenerative adsorption system