Direct numerical analysis of the temperature dependence of nuclear quadrupole resonance frequencies