Introducing unsteady and nonuniform source terms in entropic lattice kinetic models using Fourier series