Isostructural compartmentalized spin-crossover coordination polymers for gas confinement