Generalization of Euler's summation formula to path integrals ⋆