Rational design of a photomagnetic chain: bridging single-molecule magnets with a spin-crossover complex.