Efficient numerical procedure for the determination of the wave function-independent terms in longitudinal optical phonon scattering rates formulated in the Fourier domain