Solvent-induced single-molecule magnet behavior and near-infrared luminescence properties of rare earth complexes