Multifunctionality of weak ferromagnetic porphyrin-based MOFs: selective adsorption in the liquid and gas phase