Nonradiative relaxation in spin-crossover molecules: consideration of the frequency effect