Asymptotic expansion of the pearcey integral near the caustic