Numerical integration and asymptotic expansion