A Chebyshev criterion for Abelian integrals