One-dimensional Ising-like systems: an analytical investigation of the static and dynamic properties, applied to spin-crossover relaxation