Metallosupramolecular approach toward multifunctional magnetic devices for molecular spintronics