Accurate modeling of spin-state energetics in spin-crossover systems with modern density functional theory.