Porous frameworks for effective water adsorption: from 3D bulk to 2D nanosheets