A generalization of lebesgue’s convergence criterion for fourier series