Reversible on–off switching of both spin crossover and single-molecule magnet behaviours via a crystal-to-crystal transformation | Synapse