Thin films of spin-crossover coordination polymers with large thermal hysteresis loops prepared by nanoparticle spin coating.