Fast computer calculation of ESR and nonlinear spin response spectra from the fast motion to the rigid lattice limits