Two supramolecular architectures of Ni-based complexes for magnetic properties and the luminescent sensitive detection of Fe3+ and Cr6+