Metal–Organic Nanoporous Structures with Anisotropic Photoluminescence and Magnetic Properties and Their Use as Sensors