A multifunctional 3D ferroelectric and NLO-active porous metal-organic framework.