Text this: Highly selective adsorption of gases on functionalized spin-polarized dichalcogenide alloy