Breakthrough Adsorption: Theory and Analysis of Adsorption in Zeolites and Metal-organic Frameworks (MOFs)