Calculation of ESR spectra and related Fokker-Planck forms by the use of the Lanczos algorithm