Robust spin crossover platforms with synchronized spin switch and polymer phase transition