Smooth and analytic solutions for analytic linear sistems