Photochromic and photomodulated luminescence properties of two metal–viologen complexes constructed by a tetracarboxylate-anchored bipyridinium-based ligand