Enhanced binding affinity, remarkable selectivity, and high capacity of CO2 by dual functionalization of a rht-type metal-organic framework.