Magnetic framework composites for CO2 capture