Spin-crossover in cyanide-based bimetallic coordination polymers—insight from first-principles calculations